import { mapState } from "vuex";
import webUrl from "@/config/otherLink";
export default {
  data() {
    return {
      url: webUrl.personApp, //process.env.NODE_ENV == "pre" ? "" : process.env.NODE_ENV == "prod" ? "https://unify.yundaizhang.com.cn:8758/#/pages/index/index" : "http://8.142.139.164:53105/#/pages/index/index",
      webSiteUrl: "",
      dialogTitle: "",
      dialogVisible: false,
    };
  },
  computed: {
    ...mapState({
      userInfo: (state) => state.common.userInfo,
    }),
  },
  methods: {
    openUrl(item) {
      this.dialogVisible = true;
      this.dialogTitle = item.name;
      let open = `${this.url}?companyId=${this.userInfo.companyid}&registerTableId=${item.registerID}&isPlatform=h5`;
      this.webSiteUrl = open;
    },
    handleClosedialog(done) {
      done();
    },
  },
};
